﻿


/* =========================
   PAGE
   ========================= */

.legal-page {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    direction: rtl;
}


/* =========================
   CONTAINER
   ========================= */

.legal-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   HERO
   ========================= */

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 55px;
    background: linear-gradient( 135deg, var(--surface-raised) 0%, var(--surface) 55%, var(--surface-raised) 100% );
    border-bottom: 1px solid var(--border);
}


    /* نور تزئینی پشت Hero */

    .legal-hero::before {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        top: -220px;
        right: -100px;
        border-radius: 50%;
        background: var(--ember-blue-soft);
        filter: blur(10px);
        pointer-events: none;
    }

    .legal-hero::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        bottom: -220px;
        left: -80px;
        border-radius: 50%;
        background: rgba(111, 168, 220, 0.08);
        pointer-events: none;
    }


    .legal-hero .legal-container {
        position: relative;
        z-index: 2;
    }


/* =========================
   BADGE
   ========================= */

.legal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--ember-blue-soft);
    color: var(--gold-dim);
    border: 1px solid rgba(111, 168, 220, 0.30);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}


/* =========================
   HERO TITLE
   ========================= */

.legal-hero h1 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.5;
    font-weight: 900;
    letter-spacing: -0.5px;
}


.legal-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 2.2;
}


/* =========================
   UPDATE DATE
   ========================= */

.legal-update {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    padding: 9px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
}


    .legal-update strong {
        color: var(--gold-dim);
        font-weight: 800;
    }


/* =========================
   CONTENT
   ========================= */

.legal-content {
    padding: 50px 0 80px;
    background: var(--bg);
}


/* =========================
   IMPORTANT ALERT
   ========================= */

.legal-alert {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
    padding: 22px 24px;
    background: var(--surface-raised);
    border: 1px solid rgba(111, 168, 220, 0.30);
    border-right: 4px solid var(--gold);
    border-radius: var(--radius-md);
}


.legal-alert-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ember-blue-soft);
    color: var(--gold-dim);
    font-size: 22px;
    font-weight: 900;
}


.legal-alert-content {
    flex: 1;
}


    .legal-alert-content h3 {
        margin: 0 0 8px;
        color: var(--text);
        font-size: 17px;
        font-weight: 800;
    }


    .legal-alert-content p {
        margin: 0;
        color: var(--text-muted);
        font-size: 14px;
        line-height: 2;
    }


/* =========================
   TABLE OF CONTENTS
   ========================= */

.legal-toc {
    margin-bottom: 35px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(30, 34, 38, 0.04);
}


.legal-toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
}


.toc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--ember-blue-soft);
    color: var(--gold-dim);
    font-size: 16px;
}


.legal-toc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}


    .legal-toc-grid a {
        display: block;
        padding: 12px 14px;
        background: var(--surface-raised);
        border: 1px solid transparent;
        border-radius: var(--radius-sm);
        color: var(--text-muted);
        font-size: 13px;
        line-height: 1.8;
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }


        .legal-toc-grid a:hover {
            color: var(--gold-dim);
            background: var(--ember-blue-soft);
            border-color: rgba(111, 168, 220, 0.25);
            transform: translateY(-2px);
        }


/* =========================
   LEGAL SECTION
   ========================= */

.legal-section {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 25px rgba(30, 34, 38, 0.025);
    scroll-margin-top: 110px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .legal-section:hover {
        border-color: rgba(111, 168, 220, 0.35);
        box-shadow: 0 10px 35px rgba(30, 34, 38, 0.05);
    }


/* =========================
   SECTION NUMBER
   ========================= */

.section-number {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ember-blue-soft);
    border: 1px solid rgba(111, 168, 220, 0.25);
    border-radius: var(--radius-md);
    color: var(--gold-dim);
    font-size: 15px;
    font-weight: 900;
}


.section-body {
    flex: 1;
    min-width: 0;
}


    /* =========================
   SECTION TITLE
   ========================= */

    .section-body h2 {
        margin: 0 0 18px;
        color: var(--text);
        font-size: 20px;
        line-height: 1.7;
        font-weight: 800;
    }


        .section-body h2::after {
            content: "";
            display: block;
            width: 42px;
            height: 3px;
            margin-top: 9px;
            background: var(--gold);
            border-radius: 99px;
        }


    .section-body p {
        margin: 0 0 14px;
        color: var(--text-muted);
        font-size: 14px;
        line-height: 2.25;
    }


        .section-body p:last-child {
            margin-bottom: 0;
        }


    /* =========================
   LISTS
   ========================= */

    .section-body ul {
        margin: 15px 0 18px;
        padding: 0 22px 0 0;
        list-style: none;
    }


    .section-body li {
        position: relative;
        margin-bottom: 10px;
        padding-right: 18px;
        color: var(--text-muted);
        font-size: 14px;
        line-height: 2;
    }


        .section-body li::before {
            content: "";
            position: absolute;
            right: 0;
            top: 13px;
            width: 7px;
            height: 7px;
            background: var(--gold);
            border-radius: 50%;
        }


        .section-body li:last-child {
            margin-bottom: 0;
        }


/* =========================
   IMPORTANT SECTION
   ========================= */

.legal-section-important {
    border-color: rgba(229, 72, 77, 0.25);
    background: linear-gradient( 135deg, rgba(229, 72, 77, 0.025), var(--surface) );
}


    .legal-section-important .section-number {
        background: rgba(229, 72, 77, 0.08);
        border-color: rgba(229, 72, 77, 0.20);
        color: var(--price-red);
    }


    .legal-section-important .section-body h2::after {
        background: var(--price-red);
    }


/* =========================
   LEGAL NOTE
   ========================= */

.legal-note {
    margin-top: 20px;
    padding: 15px 18px;
    background: var(--surface-raised);
    border-right: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 2;
}


    .legal-note strong {
        color: var(--gold-dim);
    }


/* =========================
   WARNING BOX
   ========================= */

.legal-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
    background: rgba(229, 72, 77, 0.055);
    border: 1px solid rgba(229, 72, 77, 0.22);
    border-radius: var(--radius-md);
}


.warning-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(229, 72, 77, 0.10);
    color: var(--price-red);
    font-weight: 900;
}


.legal-warning-box strong {
    display: block;
    margin-bottom: 5px;
    color: var(--price-red);
    font-size: 14px;
}


.legal-warning-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 2;
}


/* =========================
   HEALTH WARNING
   ========================= */

.health-warning {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
    padding: 20px;
    background: rgba(229, 72, 77, 0.055);
    border: 1px solid rgba(229, 72, 77, 0.22);
    border-radius: var(--radius-md);
}


.health-warning-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(229, 72, 77, 0.10);
    color: var(--price-red);
    font-size: 20px;
    font-weight: 900;
}


.health-warning strong {
    display: block;
    margin-bottom: 10px;
    color: var(--price-red);
    font-size: 15px;
}


.health-warning p {
    margin-bottom: 10px;
}


    .health-warning p:last-child {
        margin-bottom: 0;
    }


/* =========================
   CONTACT
   ========================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}


.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, transform 0.2s ease;
}


    .contact-item:hover {
        border-color: rgba(111, 168, 220, 0.35);
        transform: translateY(-2px);
    }


    .contact-item span {
        color: var(--text-faint);
        font-size: 12px;
        font-weight: 600;
    }


    .contact-item strong {
        color: var(--gold-dim);
        font-size: 14px;
        font-weight: 800;
        word-break: break-word;
    }


/* =========================
   FINAL FOOTER NOTE
   ========================= */

.legal-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 30px;
    padding: 22px 24px;
    background: var(--ember-blue-soft);
    border: 1px solid rgba(111, 168, 220, 0.25);
    border-radius: var(--radius-lg);
}


.legal-footer-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}


.legal-footer-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 15px;
}


.legal-footer-note p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 2;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* =========================
   TABLET
   ========================= */

@media (max-width: 960px) {

    .legal-container {
        width: min(100% - 30px, 900px);
    }


    .legal-toc-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .legal-container {
        width: calc(100% - 24px);
    }


    .legal-hero {
        padding: 45px 0 40px;
    }


        .legal-hero h1 {
            font-size: 26px;
            line-height: 1.65;
        }


        .legal-hero p {
            font-size: 13px;
            line-height: 2.1;
        }


    .legal-content {
        padding: 30px 0 50px;
    }


    .legal-alert {
        gap: 12px;
        padding: 18px;
        border-right-width: 3px;
    }


    .legal-alert-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }


    .legal-alert-content h3 {
        font-size: 15px;
    }


    .legal-alert-content p {
        font-size: 13px;
    }


    .legal-toc {
        padding: 18px;
    }


    .legal-toc-grid {
        grid-template-columns: 1fr;
    }


        .legal-toc-grid a {
            padding: 11px 12px;
        }


    .legal-section {
        flex-direction: column;
        gap: 15px;
        padding: 22px 18px;
        border-radius: var(--radius-md);
    }


    .section-number {
        flex-basis: auto;
        width: 45px;
        height: 45px;
    }


    .section-body h2 {
        font-size: 17px;
        line-height: 1.8;
    }


    .section-body p {
        font-size: 13px;
        line-height: 2.2;
    }


    .section-body li {
        font-size: 13px;
    }


    .legal-warning-box {
        gap: 10px;
        padding: 15px;
    }


    .health-warning {
        gap: 12px;
        padding: 16px;
    }


    .health-warning-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 17px;
    }


    .legal-footer-note {
        gap: 12px;
        padding: 18px;
    }


    .legal-footer-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {

    .legal-container {
        width: calc(100% - 18px);
    }


    .legal-hero {
        padding: 35px 0;
    }


    .legal-badge {
        padding: 7px 12px;
        font-size: 12px;
    }


    .legal-hero h1 {
        font-size: 22px;
    }


    .legal-update {
        font-size: 11px;
    }


    .legal-alert {
        flex-direction: column;
    }


    .legal-alert-icon {
        flex-basis: auto;
    }


    .legal-section {
        padding: 20px 15px;
    }


    .section-number {
        width: 42px;
        height: 42px;
        font-size: 13px;
    }


    .section-body h2 {
        font-size: 16px;
    }


        .section-body h2::after {
            width: 34px;
        }


    .section-body p,
    .section-body li {
        font-size: 12.5px;
    }


    .legal-note {
        padding: 13px 14px;
        font-size: 12px;
    }


    .legal-warning-box {
        flex-direction: column;
    }


    .health-warning {
        flex-direction: column;
    }


    .contact-item {
        padding: 15px;
    }


    .legal-footer-note {
        flex-direction: column;
    }
}
